package operations;

import computer.Address;
import computer.Operand;
import computer.Word;

public class Mul extends BinExpr {

	public Mul(Operand o1, Operand o2, Address n) {
		super(o1, o2, n);
	}

	protected void op(Word w1, Word w2, Word w3) {
		w3.mul(w1, w2);
	}
	
	public String toString() {
		StringBuilder outputString = new StringBuilder();
		outputString.append("MUL ");
		outputString.append(o1 + " ");
		outputString.append(o2 + " ");
		outputString.append(n);
		
		return outputString.toString();
	}
}
